package edu.caece.langprocessor.syntax.parse;

import edu.caece.langprocessor.syntax.GrammarItem;

public class ParseStackItem {
	
	private GrammarItem item;
	private Integer state;
	
	public ParseStackItem(GrammarItem item, Integer state){
		this.item = item;
		this.state = state;
	}
	
	public GrammarItem getItem() {
		return item;
	}
	public Integer getState() {
		return state;
	}
	
	@Override
	public String toString() {
		String strItem = "";
		if (item != null){
			strItem = item.toString();
		}
		return  strItem + "&" + this.state ;
	}
	
	

}
